<template>
  <transition name="fade" enter-active-class="animated fadeInDown" leave-active-class="animated fadeOutUp">
    <div class="weui-toptips ishow" :class="ctype === 0 ? 'weui-toptips_warn' : 'weui-toptips_normal'" ref="formcheck" v-show="feshow">{{stext}}</div>
  </transition>
</template>

<script>
export default {
  name: 'FormError',
  props: {
    feshow: {
      type: Boolean,
      default: false
    },
    stext: {
      type: String,
      default: ''
    },
    ctype: {
      type: Number,
      default: 0
    }
  }
}
</script>

<style>
.weui-toptips_normal{background-color:#2F7DCD;}
</style>
